# _*_ coding:utf-8 _*_
import time
from src.page import loginPage
import unittest

class LoginCase(unittest.TestCase):

    login_page = loginPage.loginPage()

    def setUp(self):
        print('用例执行前的操作')

    def login_success(self):
        self.login_page.click_logincenter()
        self.login_page.input_username('cherryyu@bitun.io')
        self.login_page.input_password('Aa123321')
        self.login_page.click_loginbtn()
        time.sleep(2)
        self.assertEqual(self.login_page.login_success(),'Total Assets')

    def tearDown(self):
        self.login_page.dr.quit()

if __name__ == "__main__":
    unittest.main()
